﻿<UserControl x:Class="Toth.WLW.Plugins.ImageComboBox"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="21" d:DesignWidth="438">
    <Grid>
        <ComboBox Height="auto" HorizontalAlignment="Stretch" Margin="0" Name="comboBox1" VerticalAlignment="Stretch" Width="auto">
            <ComboBoxItem Content="Default"></ComboBoxItem>
            <ComboBoxItem Content="Microblogs"></ComboBoxItem>
            <ComboBoxItem Content="Statuses"></ComboBoxItem>
            <ComboBoxItem Content="Blogs"></ComboBoxItem>
            <ComboBoxItem Content="----" x:Name="cbiDefaultSeparator"></ComboBoxItem>
            <ComboBoxItem Content="----" x:Name="cbiTriggerSeparator"></ComboBoxItem>
            <!--<ComboBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="Test: " />
                        <TextBlock Text="{Binding Name, Mode=TwoWay}" />
                    </StackPanel>
                </DataTemplate>
            </ComboBox.ItemTemplate>-->
            <!--<ComboBox.ItemContainerStyle>
                <Style TargetType="ComboBoxItem">
                    <Setter Property="Cursor" Value="Arrow" />
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="ComboBoxItem">
                                <ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="Left">
                                    <ContentPresenter.ContentTemplate>
                                        <DataTemplate>
                                            <StackPanel Margin="6">
                                                <Border BorderBrush="#FF999999" BorderThickness="1" Padding="10">
                                                    <Image Source="{Binding Path=Icon}" Width="16" Height="16" />
                                                </Border>
                                                <ContentControl Content="{Binding Path=Name}" HorizontalAlignment="Center" FontSize="10" />
                                            </StackPanel>
                                        </DataTemplate>
                                    </ContentPresenter.ContentTemplate>
                                </ContentPresenter>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </ComboBox.ItemContainerStyle>-->
        </ComboBox>
    </Grid>
</UserControl>
